package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class WriterBean extends Bean {

  private Image writer;
  private int writerX;
  private int writerY;
  private int writerW;
  private int writerH;

  public void initBean(Magicanvas mcv) {
    this.writer = getImage("/res/img/writer.png");
    trackerImage(this.writer, mcv);
    this.writerW = (int) (this.writer.getWidth(mcv) * 1.2D);
    this.writerH = (int) (this.writer.getHeight(mcv) * 1.2D);
    this.writerX = -4;
    this.writerY = (307 - this.writerH);
  }

  public Image getWriter() {
    return this.writer;
  }

  public int getWriterX() {
    return this.writerX;
  }

  public void setWriterX(int writerX) {
    this.writerX = writerX;
  }

  public int getWriterY() {
    return this.writerY;
  }

  public void setWriterY(int writerY) {
    this.writerY = writerY;
  }

  public int getWriterW() {
    return this.writerW;
  }

  public void setWriterW(int writerW) {
    this.writerW = writerW;
  }

  public int getWriterH() {
    return this.writerH;
  }

  public void setWriterH(int writerH) {
    this.writerH = writerH;
  }
}
